<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Userdetail_model extends Xt_model {

	protected $mTable = 'user_detail';

	public function get_info_by_id($id, $fields='*')
	{
		return $this->get_by_id($id, $fields);
	}
    
    
    // 根据userId获取
    public function get_info_by_userid($userId, $fields='*')
    {
        if (is_array($userId)) {
           $where = $userId; 
        } else {
            $where = array(
                'userid'=>$userId
            );
        }
        return $this->get_by_where($where);
    }
    
}